package com.yimiyisu.kooteam.utils;

import java.io.File;
import java.net.URL;

public class FileUri {
    private static ClassLoader a;
    private static final String b = "/f01";
    private static final String c = "static";

    public FileUri() {
    }

    public static void a(ClassLoader var0) {
        a = var0;
    }

    public static URL a(String var0) throws Exception {
        if (var0.startsWith("/f01")) {
            File var2 = new File(com.zen.d.a.l(), var0);
            return var2.exists() ? var2.toURI().toURL() : null;
        } else {
            String var1 = com.zen.d.a.m();
            if (var0.contains(var1)) {
                var0 = var0.substring(var1.length() + 1);
            }

            return a.getResource("static" + var0);
        }
    }
}
